package game;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JFrame;

class Fifeteen 
{
    private static Field f;
    public static void main(String[] args) 
    {
        f = new Field(4);
        f.generate();
        GlGraphics myview = new GlGraphics(400, 400, "Fifteen", f);
        
        myview.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        myview.setUndecorated(true);
        myview.addKeyListener(new KeyAdapter()
        {

            @Override
            public void keyPressed(KeyEvent e) 
            {
                if(e.getKeyCode() == KeyEvent.VK_ESCAPE ||
                        e.getKeyCode() == KeyEvent.VK_Q)
                    System.exit(0);
            }
            
        });
        myview.setVisible(true);
        myview.setResizable(false);
    }
}
